package com.tangyuan.common.enums;

public enum HeadlinesCategoryEnum {

    TECH(1,"科技"),
    FINANCE(2,"财经"),
    HOT_SPOT(3,"热点"),
    INTERNATIONAL(4,"国际"),
    MILITARY(5,"军事"),
    SPORTS(6,"体育"),
    ENTERTAINMENT(7,"娱乐"),
    HISTORY(8,"历史"),
    FOOD(9,"美食"),
    TRAVEL(10,"旅游"),
    RECOMMEND(11,"推荐"),
    FOLLOW(12,"关注"),
    TY_STAGE(13,"唐园大舞台"),
    TY_GUIDE(14,"唐园景区导游"),
    WORLD_PAINTING(15,"世界名人书画院"),
    MAO_QIANG(16,"茂腔"),
    JING_JU(17,"京剧"),
    YU_JU(18,"豫剧"),
    XIANG_SHENG(19,"相声"),
    XIANG_QI(20,"象棋"),
    WU_DAO(21,"舞蹈"),
    STUDY_AI(22,"从小学AI"),
    PAINTING_CALLIGRAPHY(23,"唐园书画院"),
    STUDIOS_TIDBITS(24, "影城花絮"),
    POLITICAL_HISTORY(25,"政史"),
    SHICI(26,"诗词"),
    YIXUECHANGSHI(27,"医学常识"),
    YANGSHENGBAOJIAN(28,"养生保健"),
    SHENGYUE(29,"声乐"),
    YUEQI(30,"乐器"),
    WUDAO(31,"舞蹈"),
    SHUFA(32,"书法"),
    GUOHUA(33,"国画"),
    JIANZHI(34,"剪纸"),
    SUMIAO(35,"素描"),
    SHUICAI(36,"水彩"),
    SHIZHUANGBIAOYANTAIJIQUAN(37,"时装表演太极拳"),
    ROULIQIU(38,"柔力球"),
    MULANQUAN(39,"木兰拳"),
    JINGJU(40,"京剧"),
    HUANGMEIXIN(41,"黄梅戏"),
    ZHINENGSHOUJI(42,"智能手机"),
    YUEDUXIEZUO(43,"阅读与写作"),
    FALVJICHUAN(44,"法律基础"),
    SHOUFENGQING(45,"手风琴"),
    SHEYING(46,"摄影"),
    SHOUJISHEYING(47,"手机摄影"),
    SHEYINGHOUQIN(48,"摄影后期"),
    WEISHIPINZHIZUO(49,"微视频制作"),
    BIANZHI(50,"编织"),
    BUYI(51,"布艺"),
    MIANNIREN(52,"面泥人"),
    YINGYU(53,"英语"),
    WEIQI(54,"围棋"),
    QIAOPAI(55,"桥牌"),
    MINZUWU(56,"民族舞"),
    SHANSHUIHUA(57,"山水画"),
    XINGTIWUDAO(58,"形体舞蹈"),
    ERHU(59,"二胡"),
    DIANZIQIN(60,"电子琴"),
    JIANSHENGUANGCHANGWU(61,"健身广场舞"),
    PINGPANGQIU(62,"乒乓球"),
    SHUFAJIAOYIWU(63,"书法交谊舞"),
    JIAOZHOUYANGGE(65,"胶州秧歌"),
    GANGQIN(66,"钢琴"),
    MOTEBIAOYAN(67,"模特表演"),
    BALLROOMDANC(68,"交谊舞"),
    ;

    private Integer id;
    private String category;


    HeadlinesCategoryEnum(Integer id, String category) {
        this.id = id;
        this.category = category;
    }

    public static HeadlinesCategoryEnum getHeadlinesCategoryEnum(Integer id) {
        for (HeadlinesCategoryEnum value : HeadlinesCategoryEnum.values()) {
            if(id.equals(value.getId())){
                return value;
            }
        }
        return HeadlinesCategoryEnum.RECOMMEND;
    }

    private Integer getId() {
        return this.id;
    }
}

